package come.example.pagetransformer

import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity;
import android.widget.ArrayAdapter

import kotlinx.android.synthetic.main.activity_second.*
import kotlinx.android.synthetic.main.content_second.*

class SecondActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second)
        setSupportActionBar(toolbar)
        val dOne = arrayOf("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12")
        val dTwo = arrayOf("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L")
        val adapterOne = ArrayAdapter(this, android.R.layout.simple_expandable_list_item_1, dOne)
        val adapterTwo = ArrayAdapter(this, android.R.layout.simple_expandable_list_item_1, dTwo)
        lvOne.adapter = adapterOne
        lvTwo.adapter = adapterTwo
        fab.setOnClickListener { view ->
            Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                .setAction("Action", null).show()
        }
    }

}
